<h3> Search by text:</h3>
<?php
echo $this->Form->create('Post',array('action'=>'search'));
?>
<?php
/*
 *Description of the line echo $this->Form->input('text', array('type' => 'text',
                                            'style' => 'width:150px'));
 *
 *drawing a text box for the user to enter the text he is searching for
 *
 *@author Noha Diaa
 */
 ?>

<?php

echo $this->Form->input('text', array('type' => 'text',
                                            'style' => 'width:150px'));
	  
?>

<?php
echo $this->Form->end('Search');
?>
<?php
if($result != NULL){
?>
<table>
	<?php
 foreach($result as $tweet): ?>
 <tr>
   
<td>

<?php  echo $this->Html->link($tweet['Post']['text'],array('controller'=>'posts','action'=>'tweetreplies',$tweet['Post']['postID']));?>

 </td>
   
 </tr>
<?php endforeach; ?>
</table>
<?php }?>